'use strict';

const Service = require('egg').Service;
const { Op } = require("sequelize");

class AdminService extends Service {

    async findByUsername(username) {
        return await this.ctx.model.Admin.findOne({
            where: {
                username
            }
        });
    }

    
}

module.exports = AdminService;